package com.example.sulingorder.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.sulingorder.dao.OrderEarthDao;
import com.example.sulingorder.entity.OrderEarthEntity;
import com.example.sulingorder.service.OrderEarthService;
import com.xiao.sulingpublic.utils.PageUtils;
import com.xiao.sulingpublic.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("orderEarthService")
public class OrderEarthServiceImpl extends ServiceImpl<OrderEarthDao, OrderEarthEntity> implements OrderEarthService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OrderEarthEntity> page = this.page(
                new Query<OrderEarthEntity>().getPage(params),
                new QueryWrapper<OrderEarthEntity>()
        );

        return new PageUtils(page);
    }

}